package cn.edu.cqu.fredyvia.forum.service.impl;

import cn.edu.cqu.fredyvia.forum.entity.TalkThumb;
import cn.edu.cqu.fredyvia.forum.mapper.TalkThumbMapper;
import cn.edu.cqu.fredyvia.forum.service.ITalkThumbService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author fredyvia
 * @since 2021-07-10
 */
@Service
@Slf4j
public class TalkThumbServiceImpl extends ServiceImpl<TalkThumbMapper, TalkThumb> implements ITalkThumbService {
    //点赞
    @Autowired
    TalkThumbMapper talkThumbMapper;

//    @Override
//    public void thumb(int user_id,int id) {
//        try {
//            talkThumbMapper.insert(new TalkThumb(user_id, id));
//        }catch (Exception e) {
//            log.info(e.toString());
//        }
//    }
}
